import { routesBuild } from './auto'
import { viewsDevRoutes } from '@/views-dev/router'

export const remainingRouter: AppRouteRecordRaw[] = [
  { path: '/', redirect: '/home' }, 
  { path: '/404', component: () => import('@/layout/Error404.vue') },
  { path: '/test', component: () => import('@/layout/Test.vue'), },
  // { 
  //   path: '/admin', 
  //   component: () => import('@/layout/LayoutLv3Admin.vue'),
  //   children: [
  //     {
  //       path: 'pages/profile',
  //       component: () => import('@/views/pages/profile/index.vue'),
  //       name: 'AdminPagesProfile',
  //       meta: {
  //         canTo: true,
  //         hidden: true,
  //         noTagsView: false,
  //         icon: 'ep:user',
  //         title: '个人中心'
  //       }
  //     },
  //   ]
  // },
  // 主应用时为子应用分配路由，子应用时不需要
  { path: '/cjui-admin-vue3-micro/:path1?/:path2?/:path3?', component: () => import('@/views-front/cjui-admin-micro/index.vue'), },
  // views-front 自动生成的路由表
  routesBuild,
  // 辅助文档路由
  ...(import.meta.env.VITE_NODE_ENV === 'development' ? viewsDevRoutes : [])
]
